html, body {
    min-width: 1200px;
    height: 100%;
    overflow-y: hidden;
}
.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ui-diy {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    
    &-navigate {
        position: absolute;
        top: 0;
        left: 0;
        width: 287px;
        height: 100%;
        background-color: #293139;
        &-header {
            height: 50px;
            border-bottom: 1px solid #373e46;
            .logo {
                float: left;
                width: 130px;
                height: 49px;
                text-align: center;
                background: url(../../assets/logo.png) center no-repeat;
                img {
                    display: none;
                }
            }
            .logout {
                float: left;
                width: 157px;
                border-left: 1px solid #373e46;
                line-height: 49px;
                color: #fefefe;
                text-align: center;
                .icon {
                    display: inline-block;
                    margin-top: -3px;
                    margin-right: 8px;
                    width: 16px;
                    height: 16px;
                    vertical-align: middle;
                    background: url(../../assets/icon_back.png) center no-repeat;
                }
            }
            .logout:hover {
                background-color: #4a4d51;
            }
        }
    }
    
    &-modules {
        color: #b4b4b4;
        text-align: center;
        .nav {
            font-weight: normal;
            line-height: 42px;
            font-size: 12px;
            border-top: 1px solid #373e46;
            border-bottom: 1px solid #373e46;
        }
        .modules-cells {
            position: relative;
            background-color: #373e46;
            overflow: hidden;
        }
        .modules-cells:after {
            content: ' ';
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #293139;
        }
        .modules-cell {
            float: left;
            padding: 16px 10px;
            width: 96px;
            height: 71px;
            border-bottom: 1px solid #293139;
            border-right: 1px solid #293139;
            list-style: none;
            cursor: pointer;
            .icon {
                display: block;
                margin-bottom: 6px;
                height: 16px;
            }
            .title {
                display: block;
            }
        }
        .modules-cell:hover, .modules-cell.active {
            background-color: #4a4d51;
        }
        .modules-cell:nth-child(3n) {
            border-right: 0;
            width: 95px;
        }
        .modules-cell.disabled {
            cursor: not-allowed;
        }
    }
    
    &-container {
        position: absolute;
        top: 0;
        left: 287px;
        right: 0;
        height: 100%;
        background-color: #f5f5f5;
    }
    
    &-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 51px;
        border-bottom: 1px solid #ebebeb;
        background-color: #fff;
        .right {
            float: right;
            font-size: 0;
            span {
                display: inline-block;
                padding: 10px;
                min-width: 124px;
                height: 50px;
                font-size: 12px;
                border-left: 1px solid #ebebeb;
                line-height: 30px;
                text-align: center;
                color: #969696;
            }
        }
    }
    
    &-body {
        position: absolute;
        left: 0;
        right: 0;
        top: 51px;
        bottom: 0;
    }
    
    &-view {
        position: absolute;
        top: 0;
        left: 0;
        right: 450px;
        bottom: 0;
        padding: 10px 10px 70px;
        &-content {
            padding: 50px 10px 20px;
            height: 100%;
            border: 1px solid #ececec;
            background-color: #fff;
            overflow: hidden;
            overflow-y: auto;
        }
        &-footer {
            position: absolute;
            bottom: 0;
            left: 0;
            padding: 14px 20px;
            width: 100%;
            box-shadow: 0 0 10px rgba(0, 0, 0, .1);
            text-align: center;
            border-left: 1px solid #ebebeb;
            border-right: 1px solid #ebebeb;
            background-color: #fff;
        }
        
    }
    
    &-config {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 450px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background-color: #fff;
        
        &-header {
            padding: 20px;
            width: 100%;
            color: #333;
            border-bottom: 1px solid #ebebeb;
            background-color: #fafafa;
            h2 {
                position: relative;
                margin-bottom: 10px;
                padding-left: 26px;
                font-size: 16px;
                line-height: 20px;
                font-weight: normal;
                .ui-icon {
                    position: absolute;
                    left: 0;
                    top: 2px;
                }
            }
            p {
                font-size: 12px;
                line-height: 20px;
            }
        }
        
        &-body {
            flex: 1;
            padding: 20px;
            overflow: hidden;
            overflow-y: auto;
        }
        
    }
    
}

.ui-phone {
    position: relative;
    margin: 0 auto;
    padding: 66px 10px 10px;
    width: 399px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff url(../../assets/phone-bar.png) center 10px no-repeat;
    &-title {
        position: absolute;
        top: 21px;
        left: 10px;
        right: 10px;
        font-weight: normal;
        line-height: 45px;
        text-align: center;
        font-size: 14px;
        color: #6d6d6d;
    }
}

.ui-page {
    min-height: 520px;
    border: 1px solid #ddd;
    background-color: #f3f3f3;
    &-none {
        padding: 180px 0;
        font-size: 14px;
        text-align: center;
    }
    &-item {
        position: relative;
        min-height: 10px;
        &-content {
            position: relative;
            z-index: 1;
        }
        &-mask {
            display: none;
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            border: 2px dashed #1ca2e7;
            z-index: 2;
        }
        &-remove {
            position: absolute;
            right: 0;
            bottom: 0;
            z-index: 3;
        }
    }
    &-item:hover {
        &-mask {
            display: block;
        }
    }
}

.ui-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
}
.ui-icon-page {
    background-image: url(../../assets/icon_page.png);
}


.ui-slider-group {
    display: flex;
}
.ui-slider-group .label {
    width: 80px;
    color: #999;
    line-height: 24px;
}
.ui-slider-group .box {
    flex: 1;
}
.ui-slider-group .box .ivu-slider-wrap {
    margin-top: 9px;
    margin-bottom: 9px;
}

.ui-picture-cells {
    margin: 0 -20px;
    padding: 20px;
    border-top: 1px solid #ebebeb;
}
.ui-picture-cell {
    display: flex;
    position: relative;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #eee;
    background-color: #fafafa;
}
.ui-picture-cell .upload-btn {
    margin-right: 10px;
    width: 88px;
    height: 88px;
    background-color: #e6e6e6;
}
.ui-picture-cell .config {
    flex: 1;
    padding: 5px 0;
}
.ui-picture-cell .config .ivu-form-item {
    margin-bottom: 14px;
}
.ui-picture-cell .config .ivu-form-item:last-child {
    margin-bottom: 0;
}
.ui-picture-cell .config.notitle {
    padding-top: 28px;
}
.ui-picture-cell .config.notitle .ivu-form-item:first-child {
    display: none;
}
.ui-picture-cells .ui-picture-cell .remove {
    display: none;
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
}
.ui-picture-cells .ui-picture-cell:hover .remove, .ui-picture-cells .ui-picture-cell.hover .remove {
    display: block;
}
.ui-picture-cells .ui-picture-cell .remove .ivu-icon {
    vertical-align: top;
}
.ui-picture-cells .add-btn .ivu-icon {
    font-weight: bold;
}


.ui-module-cell {
    position: relative;
    &-body {
        position: relative;
        z-index: 1;
        overflow: hidden;
    }
    &-handle {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border: 2px dashed #1ca1e6;
        z-index: 2;
        cursor: move;
    }
    &-options {
        position: absolute;
        right: 0;
        bottom: 0;
    }
    &-remove {
        display: inline-block;
        padding: 2px 5px;
        font-size: 12px;
        color: #fff;
        line-height: 14px;
        background-color: rgba(0, 0, 0, .2);
        cursor: pointer;
    }
    
}
.ui-module-cell:hover .ui-module-cell-handle, .ui-module-cell.hover .ui-module-cell-handle, .ui-module-cell.active .ui-module-cell-handle {
    display: block;
}